<?php 
    $this->load->view('includes/header'); 
    $this->load->view('includes/nav');
?>
<section id="LeapMainWrapper">
<div id="login_form">

	<h1>Login!</h1>
    <?php 
        if(@$incorrect){
            echo "<p>".$incorrect."</p>";
        }
	echo form_open('http://leapdemo.com/login/validate_credentials');

     ?>
        <input type="text" placeholder="Username" name="username" value="<?php echo set_value('username'); ?>" size="50" />
        <input type="password" placeholder="Password" name="password"  size="50" />
    <?php
        $submit = array(
        'class' => 'button',
        'type' => 'submit',
        'name' => 'login',
        'value' => 'Login'
    );
	echo form_submit( $submit);
	echo anchor('login/signup', 'Create Account',array('class' => 'button_blue'));
	echo form_close();
	?>

</div><!-- end login_form-->
</section>
	
<?php $this->load->view('includes/footer'); ?>